package appapi.entity.AppAmg;

import appapi.entity.app.AnnexEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@ApiModel(value = "附件信息表")
@Data
public class AnnexDtoImgDto {
    /**
     * 记录ID
     */
    @ApiModelProperty(value = "记录ID")
    private Long annexId;

    /**
     * 附件标题
     */
    @ApiModelProperty(value = "附件标题")
    private String annexTitle;

    /**
     * 附件类型 自检、月检、巡检 、整改 枚举
     */
    @ApiModelProperty(value = "附件类型 自检、月检、巡检 、整改 枚举")
    private String annexType;

    /**
     * 附件图片地址
     */
    @ApiModelProperty(value = "附件图片地址")
    private String annexUrl;

    /**
     * 附件备注
     */
    @ApiModelProperty(value = "附件备注")
    private String annexNote;

    @ApiModelProperty(value = "创建人员")
    private Long createUser;

    @ApiModelProperty(value = "")
    private Long modifyUser;


    /**
     * 巡检表id
     */
    @ApiModelProperty(value = "")
    private Long recId;
    @ApiModelProperty(value = "转换的图片",required = true)
    private List<String> img;
    public AnnexEntity vo2Entity() {
        AnnexEntity entity = new AnnexEntity();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}
